import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router';
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Borrow',
        meta: {
            title: '领用',
            keepAlive: false,
            requireAuth: true
        },
        component: () => import('@/views/borrow.vue')
    },
    {
        path: '/return',
        name: 'Return',
        meta: {
            title: '归还',
            keepAlive: false,
            requireAuth: true
        },
        component: () => import('@/views/return.vue')
    },
    {
        path: '/test',
        name: 'Test',
        meta: {
            title: 'Test',
            keepAlive: false,
            requireAuth: true
        },
        component: () => import(/* webpackChunkName: "dawei-test" */ '@/views/backup/test.vue')
    },
    {
        path: '/test2',
        name: 'Test2',
        meta: {
            title: 'Test2',
            keepAlive: false,
            requireAuth: true
        },
        component: () => import(/* webpackChunkName: "dawei-test" */ '@/views/backup/test2.vue')
    },
    {
        path: '/test3',
        name: 'Test3',
        meta: {
            title: 'Test3',
            keepAlive: false,
            requireAuth: true
        },
        component: () => import(/* webpackChunkName: "dawei-test" */ '@/views/backup/test3.vue')
    }
];
const router = createRouter({
    history: createWebHashHistory(),
    routes
});
export default router;
